home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
dosshell.zip
/
DOSDEMO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-01-04
|
527b
|
24 lines
{$M $C00,0,0} {MaxHeap must be limited to allow space for EXEC}
Program DOSDemo;
USES CRT, DOSShell;
var
Ch : char;
HoldAttr : byte;
begin
HoldAttr := TextAttr;
TextAttr := 15;
ClrScr;
Write('In the main application program - press a key to load the DOS shell. ');
Repeat
Ch := ReadKey;
Until not KeyPressed;
ShellToDOS;
Write('Home again, home again - press a key to exit. ');
Repeat
Ch := ReadKey;
Until not KeyPressed;
TextAttr := HoldAttr;
ClrScr;
end.